include_directories("../include")
add_library(http
    # STATIC
    SHARED
    httpParser.cpp
    httpBasic.cpp
    httpResponse.cpp
    httpRequest.cpp
    ./Date.cpp
)

install(TARGETS http
    RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
    ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
)

install(DIRECTORY ../include/ TYPE INCLUDE)

# install(DIRECTORY ../include/ DESTINATION ${INCLUDEDIR}
#     PATTERN "CVS" EXCLUDE
#     PATTERN "scripts/*"
#     PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
#     GROUP_EXECUTE GROUP_READ
# )